-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use core.getBooleanInput()
to resolve include-prerelease
option
#250
Conversation
Hi @nogic1008, could you please revert the lines in |
@nogic1008 , could you update your branch from main to fix license issue? |
@vsafonkin rebased. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
I'm sorry to have staled this PR. |
@@ -18,6 +18,7 @@ inputs: | |||
include-prerelease: | |||
description: 'Whether prerelease versions should be matched with non-exact versions (for example 5.0.0-preview.6 being matched by 5, 5.0, 5.x or 5.0.x). Defaults to false if not provided.' | |||
required: False | |||
default: 'false' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove single quotes ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmitry-shibanov
GitHub Action schema warns this should be string. Should I still remove the quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be okay, because we use the similar approach for setup-node https://github.com/actions/setup-node/blob/main/action.yml#L16. But I think you can keep this variant due to the parsing logic of runner.
Description:
getBooleanInput()
function was added since @actions/core@1.3.0 (actions/toolkit#725).This PR uses it to reduce code path.
include-prerelease
set invalid value.Related issue:
None.
Check list: